package charTest;

import org.junit.Test;

/**
 *121   12312
 * 判断是否是前后一致的数字
 */
public class test4 {
    @Test
    public void test(){
        String s = "z21s121az";
        char[] ss = s.toCharArray();
        if(ss[0] == ss[ss.length-1]){
            System.out.println("true");
        }else {
            System.out.println("false");
        }
    }
}
